package info.heidao.ww2.framework.exception;

import lombok.Getter;

/**
 * author: zhengheng
 * Date: 2020-06-15 15:11
 * Description:
 *
 * @author zhengheng
 */
@Getter
public abstract class BaseException extends RuntimeException {
    private String code;
    private String msg;

    public BaseException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public BaseException(String msg, String code) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public BaseException(String msg, Throwable throwable) {
        super(msg, throwable);
        this.msg = msg;
    }

    public BaseException(String msg, String code, Throwable throwable) {
        super(msg, throwable);
        this.code = code;
        this.msg = msg;
    }
}
